package org.karesz.maven.dao.generic;

import java.io.Serializable;
import java.util.List;


/**
 * 
 * Generic interface for Data Access Object. To be extended or implemented
 * Contains common persistence methods
 * 
 * 
 * @author Karesz
 *
 */

public interface GenericDao<T, ID extends Serializable> {

	void save(T entity);
	void update(T entity);
	void delete(T entity);
	T findById(ID id);
	List<T> findAll();
	
}
